package com.zj.executor;

import com.zj.executor.result.ResultHandler;
import com.zj.mapping.Configration;
import com.zj.mapping.MappedStatement;

import java.util.List;

public interface Excecuter {

    <T> List<T> query(MappedStatement mappedStatement, ResultHandler resultHandler, Object... params) throws Exception;

    Integer insert(MappedStatement mappedStatement, Object... params) throws Exception;

    Integer update(MappedStatement mappedStatement, Object... params) throws Exception;

    Integer delete(MappedStatement mappedStatement, Object... params) throws Exception;
}
